<%-- 
    Document   : test
    Created on : 7 груд 2013, 23:44:00
    Author     : ant
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Testing</title>
    </head>
    <body>
        <p> Question:  ${testFacade.currentQuestion.text} </p>

        <FORM ACTION="<%=request.getContextPath()%>/test/${testFacade.currentTestID}/next.htm" METHOD="post">


            <FORM ACTION="/test/${testFacade.currentTestID}/next.htm" METHOD="post">
                <c:forEach items="${testFacade.currentQuestion.answerVariants}" var="answer">
                    <input type="radio" name ="answer" id="${answer.answerID}" value="${answer.answerID}" >
                    "${answer.text}"
                    <br/>

                </c:forEach>

                <button type="submit" class="btn btn-success">Next</button>
            </FORM>
    </body>
</html>
